//
//  PersonalTableViewCell.m
//  shike
//
//  Created by RegentSoft on 2017/4/20.
//  Copyright © 2017年 RegentSoft. All rights reserved.
//

#import "PersonalTableViewCell.h"

@implementation PersonalTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]) {
        [self creatView];
    }
    return self;
}
-(void)creatView{
    _headImage =[[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
    //    image.image = [UIImage imageNamed:@"brgoud3"];
    [self addSubview:_headImage];
    
    _titleLabel =[[UILabel alloc] initWithFrame:CGRectMake(70, 15, 80, 20)];
    _titleLabel.textColor = [UIColor colorWithHexString:@"#323232"];
    _titleLabel.font = [UIFont systemFontOfSize:14.0];
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_titleLabel];
    
    _contentLabel =[[UILabel alloc] initWithFrame:CGRectMake(70, 40, DeviceWidth-80, 20)];
    _contentLabel.textColor = [UIColor colorWithHexString:@"#999999"];
    _contentLabel.font = [UIFont systemFontOfSize:14.0];
    _contentLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_contentLabel];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
